package com.demo2do.fms.admin.entity.vam;

import com.demo2do.fms.entity.driver.Driver;

/**
 *
 * @author Ark
 *
 */
public class DriverStat {

    /** 司机id */
    private Long id;
    
    /** 身份证号 */
    private String citizenCode;
    
    /** 司机姓名 */
    private String name;
    
    /** 司机电话 */
    private String phone;
    
    /** 是否禁用 */
    private Boolean disabled;
    
    /** 是否主驾 */
    private Boolean master;

    /**
     * The default constrcutor
     */
    public DriverStat() {
    }
    
    /**
     * @param driver
     */
    public DriverStat(Driver driver) {
        this.id = driver.getId();
        this.citizenCode = driver.getCitizenCode();
        this.name = driver.getName();
        this.phone = driver.getMp();
        this.disabled = driver.getDisabled();
        this.master = (driver.getDutyId() != null && driver.getDutyId().intValue() == 10) ? true : false;
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @return the citizenCode
     */
    public String getCitizenCode() {
        return citizenCode;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @return the phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @return the disabled
     */
    public Boolean getDisabled() {
        return disabled;
    }

    /**
     * @return the master
     */
    public Boolean getMaster() {
        return master;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @param citizenCode the citizenCode to set
     */
    public void setCitizenCode(String citizenCode) {
        this.citizenCode = citizenCode;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @param phone the phone to set
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * @param disabled the disabled to set
     */
    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    /**
     * @param master the master to set
     */
    public void setMaster(Boolean master) {
        this.master = master;
    }
    
}
